
import axios from "../../utils/axios"



export default {
    namespaced:true,
    state(){
        return{
            category:[],

        }
    },
    mutations:{
        saveCategoryMutations(state,list){
            state.category = list
        },

    },
    actions:{
        getCategoryActions({commit}){
            axios({
                url:'api/goodlist',
                method:"get",
            }).then(response=>{
                commit('saveCategoryMutations',response.list)
                console.log(response,"gugugugugu")
                console.log(response.list,"xixixixi")
            })
        }
    },
    getters:{
   
    },


}

